<div class="training-course-wrapper ui-widget-content ui-corner-all ui-helper-clearfix">
	<h3 class="ui-widget-header widget-header ui-corner-all">Training Material</h3>
	<div class="widget-content ui-helper-clearfix">
		<div class="training-course">
			<ul class="training-course-menu">
				<li>
					<div class="parent-item ui-corner-all ui-widget-content">
						<span class="ui-icon ui-icon-triangle-1-s ui-helper-clearfix"></span>Managerial
					</div>
					<ul class="child-menu ui-corner-bottom ui-widget-content">
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Planning</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Meeting Mangament</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Decision Making</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Results orientation</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Delegation</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Coaching</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Motivating</li>
					</ul>
				</li>
				<li>
					<div class="parent-item ui-corner-all ui-widget-content">
						<span class="ui-icon ui-icon-triangle-1-s"></span>Behavioral
					</div>
					<ul class="child-menu ui-corner-bottom ui-widget-content">
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Writting</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Oral</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Teamwork & Co.operation</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Problem Solving</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Team Management</li>
					</ul>
				</li>
				<li>
					<div class="parent-item ui-corner-all ui-widget-content">
						<span class="ui-icon ui-icon-triangle-1-s"></span>Functional
					</div>
					<ul class="child-menu ui-corner-bottom ui-widget-content">
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Set up</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Checking</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Reporting</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>People Management</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Safety</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>AM Step 1</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>AM Step 2</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>AM Step 3</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>AM Step 4</li>
					</ul>
				</li>
				<li>
					<div class="parent-item ui-corner-all ui-widget-content">
						<span class="ui-icon ui-icon-triangle-1-s"></span>Addiontional
					</div>
					<ul class="child-menu ui-corner-bottom ui-widget-content">
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Training Preparetion</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Training Delivery</li>
						<li class="child-item ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span>Training Evaluation</li>
					</ul>
				</li>
			</ul>
		</div>
		<div class="training-course-detail ui-widget-content ui-corner-all">
			<?php if(empty($m_content) == false) echo $m_content;?>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(".parent-item").click(function(){
		if($(this).next(".child-menu").css("display") == "block")
		{
			$(this).next(".child-menu").hide(300);
			$(this).removeClass("ui-state-highlight ui-corner-top").addClass("ui-corner-all");
			$(this).children("span").removeClass("ui-icon-triangle-1-n").addClass("ui-icon-triangle-1-s");

		}
		else
		{
			$(".child-menu").hide(300);
			$(".parent-item").removeClass("ui-state-highlight ui-corner-top").addClass(" ui-corner-all");
			$(".parent-item").children("span").removeClass("ui-icon-triangle-1-n").addClass("ui-icon-triangle-1-s");
			$(this).next(".child-menu").show(300);
			$(this).removeClass(" ui-corner-all").addClass("ui-state-highlight ui-corner-top");
			$(this).children("span").removeClass("ui-icon-triangle-1-s").addClass("ui-icon-triangle-1-n");
		}
	});

	$(".child-item, .parent-item").mouseover(function(){
		$(this).addClass("ui-state-error");
	}).mouseout(function(){
		$(this).removeClass("ui-state-error");
	});

	$(".child-item").click(function(){
		$(".child-item").removeClass("ui-state-hover");
		$(this).addClass("ui-state-hover");
		$.ajax({
			url : "<?=base_url()?>index.php/home/material_detail/",
			type : "POST",
			data:{},
			success: function(data){
				$(".training-course-detail").html(data);
			}
		});
	});
</script>